import os
import winreg
def get_desktop():
	key = winreg.OpenKey(winreg.HKEY_CURRENT_USER,r'Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders')
	return str(winreg.QueryValueEx(key, "Desktop")[0])

def initpath():
	tempath = os.path.join(get_desktop(), 'forexportexcel')
	return tempath
	
def gettempath():
	tempath = os.path.join(initpath(), 'tem')
	return tempath
	
def getexcelpath():
	tempath = os.path.join(initpath(), 'excel')
	return tempath
	
def makepath():
	os.mkdir(initpath())
	os.mkdir(gettempath())
	os.mkdir(getexcelpath())
	

